package com.tianji.learning.service;

import com.tianji.learning.domain.po.PointsBoard;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.query.PointsBoardQuery;
import com.tianji.learning.domain.vo.PointsBoardVO;

import java.util.List;

/**
 * <p>
 * 学霸天梯榜 服务类
 * </p>
 *
 * @author 东哥
 * @since 2025-10-29
 */
public interface IPointsBoardService extends IService<PointsBoard> {

    /**
     * 分页查询指定赛季积分排行榜
     * @param pageQuery
     * @return
     */
    PointsBoardVO pageQueryBySeason(PointsBoardQuery pageQuery);

    /**
     * 根据赛季ID创建表
     * @param seasonId
     */
    void createTable(Integer seasonId);

    /**
     * 分页查询当前赛季的榜单信息
     * @param key
     * @param pageNo
     * @param pageSize
     * @return
     */
    List<PointsBoard> queryCurrentBoardList(String key, Integer pageNo, Integer pageSize);
}
